print-editor: Fix a wrong comparison
authorTimm Bäder <mail@baedert.org>
Thu, 15 Oct 2020 04:05:39 +0000 (06:05 +0200)
committerTimm Bäder <mail@baedert.org>
Thu, 22 Oct 2020 15:46:33 +0000 (17:46 +0200)
commit3a1e019e83595b747d4734dd32d98511b31413e0
tree085081e14714bf0e972f236a6428ff7b797c1abb
parenta923be95b36f1303a90d232c55b6f373c3fa8f3e
print-editor: Fix a wrong comparison

If error is NULL, replacing the file contents worked and we don't
show the error dialog. The previous version pretty explicitly
dereferenced a NULL pointer by first ensuring that error is NULL and
then accessing error->message.

Found by scan-build
demos/print-editor/print-editor.c